package com.example.spring_demo.test;

import com.example.spring_demo.aop.AspectjAdvice;
import com.example.spring_demo.dto.Person;
import com.example.spring_demo.dto.User;
import com.example.spring_demo.mapper.UserMapper;
import com.example.spring_demo.service.UserServiceImpl;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.lang.reflect.Method;
import java.net.InetAddress;
import java.util.Map;

public class Demo1 {
    public static void main(String[] args) {
        //1.加载配置文件：就会自动创建出配置好的bean
        //只要指定配置文件的名字，会自动到src/main/resources下寻找文件
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-context.xml");

        Person bean = context.getBean(Person.class);
        System.out.println(bean);
    }
}
